remove the loading class after the document's location has been changed, especially important if the old URL and the current URL do not differ, fixes #84