fixes main js