doug's answers to js lab 7.1