JSHistory mixin for Reactjs