Navigate between 3 pages

I have an issue when i need to navigate to a third page on my view. The problem is that when i do this, every javascript of my page brake. Not even from the previous pages keep working.
EX: company -> client -> contacts if i keep moving between company and client everything works fine. But if I try to go to contacts no javascript works anymore.