Chrome and Firefox broken

The file currently uses a global history variable, due to changes in modern browsers this variable now is the global history object.
Merge pull request #5 from aggrosoft/patch-1

Chrome and Firefox broken