corrected syntax error in main js