Fixing some JS, and switching to minified versions of scripts.