Fixed 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).