Examples from the Nicholas Zachas's book professional Javascript programming