Adding pagination

Throws jade errors on first loop