manages triggering of js and navigation through survey pages