tutorial from Single Page Web Apps book