Improve initRoutes angular initialization.