Exercise some of the JavaScript patterns