Updated the JavaScript.