moves scripts from main.html