fix javascript syntax.