Refactored pagination

Use documentFragment to insert all new items at once rather than doing
so within for loop. Performance ftw, right?!