code demo used in my AngularJS presentation at GDG DevFestPH 2013