switch router logic from using pathjs to backbone