Added event parameter for onPageClick as requested in #26