homework 4 js2 task 3