Facebook Style Flux Architecture in JS