JavaScript Exercise 3 for Mark McKelvy