splitting some of the javascript into different script files