Adapt app to use AngularJS.