Build: Move external libraries to external directory

I left `js/pretty.js` alone because there have been several modifications to it and it's a fairly simple script.

I didn't do any testing, so I'm hoping someone with a local setup can test this.