modify javascript syntax