Fixed the navigation javascript between tabs