split main JavaScript file