updated the js file