updating js file