Used angular.js for pagination