Code illustrating examples from Single Page Web applications book