Reformat the plugin to make it function with React 0.12.1

I've added type definition of the plugin's parameters
Also followed this recommendation
https://github.com/react-bootstrap/react-bootstrap/issues/1
Finally the code wasn't working with React 0.12.1