changes made for javascript