backbone router code refactor