fix some javascript syntax.