updated the js app