Fixed JS syntax error (#1637)