Fixed up the JavaScript.