Starting to move js scripts to other files