Implement history handling
Update history.js
Merge pull request #143 from AnyFetch/history

Implement history handling