main js fixed