update the js