Move all to .js file to scripts/ folder