update history.js