I am using backbone.js and I want to reload a resource .js file when a user navigates back to a page, e.g. using:
window.history.back();
So not necessarily reloading the page. This is because I need to reset a huge set of global variables and I don't want to make a function that resets 200+ variables and manage both sets when making/removing new variables).
How can I reload the .js file so all my global vars are wiped clean?
And please save the lecture on the evil of global vars ;)