fix the syntax error of this JS file