fixing typo so code works as a commonjs module

I made a "react" wrapper around this library, but had to make a few changes for it to work within node (hope you don't mind- https://github.com/skratchdot/react-bootstrap-daterangepicker).  This is one of the changes I had to make.