Updated the JavaScript stuff