fix main js