Integrating AngularJS in existing applications