correct main js