added jQuery support, and simplePagination