Simple pagination using AngularJS