for javascript code