Building SPA with AngularJS