Fix bug where pagination.page was a string instead of a number

Because of using ===, no type inference is done and thus concatenation instead of addition occurs (ex: line 54) or equality checks fail (ex: line 50).
Merge pull request #1 from ehaughee/patch-1

Fixed bug where pagination.page was a string instead of a number