Sample code for "Professional Javascript for Web Developers"