Update main js