Move all JS to the new file