update main js file