FIX: Adds a callback to the popstate event so routes are activated when
the history is moved forward/back.