working on in class exercises javascript