almost done with js