Sample of pagination system for Angular.js