Reconstruct angularjs route structure