Examples from Professional JavaScript for Web Developers book