js problem 8 almost done