range function returning correct range

clicking on the 2nd page with perPage = 4 and length of content = 10, returns range as { s: 4, e: 43 } because perPage's type is string. 

```
e = 4 + "4" - 1
e = "44" - 1
e = "43"
```

It is fixed by using parseInt.