Moved the javascript