Building a basic SPA using angular.js