start moving js to files