for javascript codes