Cleanups and additions to history.js
Merge branch 'master' of https://github.com/pranavashok/magar