Updated main js.