Moved the JS to the proper file