Fix javascript syntax