Attempt to implement Flux design for React.js component