Load in JS from external

And also a slightly more robust load system that alerts when loading
fails.