Cleaning up paste to main js