Demo code for a Single Page Application using AngularJS