Adding AngularJS SPA functionality