You can find and add external libraries from the right side bar in most cases (from the little button that looks like a book), but I think your error stems from that you're linking to the GitHub page instead of the actual script.
The correct link should be: https://raw.github.com/angular-ui/bootstrap/gh-pages/ui-bootstrap-0.4.0.js