updating main js