updates made to main js