Preparation doesn't run on back

Is there a way to run the preparation logic coming from the back button or from the javascript back method? We are having problems in a javascript plugin that we are implementing where we add the script tag to reference the plugin library in the preparation but during the plugin use the page refreshes and everything that was run in the preparation is gone including the plugins library reference and thus the plugin breaks. 
Hi Domingo,

Almost no application (including your random favourite web site like amazon) runs well when using the back button. Typcially the browser just loads from its cache whatever the last state of the page was, without rerunning anything.