Javascript not loading when using Master -Detail

I am changing my App to a Master- Detail layout and now have an issue with javascript functions only running once. They work in the first page, but not when a new page is loaded. No issues before changing the App and what is confusing, is it only occurs when the Master-Detail shows, not when the App is in single page view. Anyone experiencing this?