Code from working through the Single Page Applications book