edit syntax , still not found a good javascript syntax