Fixed syntax error in JS