Code from the single page web applications book