Update History.js; clear unused DOM references
Reduce calls to updateVisible