Use templating and routes for AngularJS