Fixed javascript syntax