An architecture for HTML5 apps using Facebook's Flux.js library