finishing up the functional-javascript exercises