moving to main js