Fix javascript syntax error