Sample Solution to JavaScript Lab Exercise 1