change code for js file