Update history-manager.js