main js file