Updated a bunch of the build scripts and JS