finished the js