http://www.beletsky.net/2013/04/building-single-pages-applications.html