allow functions to page links generation

Here's an example:
```javascript
new Paginator('element_id', 1024, 10, 300, function(page){
    return '/news/' + page + '/overview';
})
```