Improved fetching of files with error
New history.js implementation