moved node_view js settings assignment to its own function so quiz results pages can access them too