javascript syntax fix.