Fixed a bug by adding a single letter to the code.

Fixed a bug where page scripts weren't being unloaded and they kept being called and stacking up every time a page was changed.