Adding changes from Part Two: http://whateverthing.com/blog/2013/06/30/quick-web-apps-part-two/