update main js