working through the code examples in Single Page Web Applications by Mikowski and Powell