updated the js and finished the project