Adding ajax pagination

I am not sure if this won't throw an notice if $displayData['range'] is not set at all. This is why I test it this way.