Update main js file