fix main js file