Update javascript syntax.