Fixed the javascript inclusion madness for scans.js (history javascript)