Fixed javascript syntax error