Trying to implement history.js