Fix the javascript