javascript events homework

v