Fixed java script syntax error