updated the js