main js update