JS is now correctly run when switching through different single-page
html files