creating main js file