Updated history.js