A wrapper around datatable's ajax methods that allow synchronization with server-side pagination in a rails app