Updated the javascript tweaks