adds ngRoutes, preps ngDirective for DOM events