Fix goToPage function.
Added settings for changing text for pagination and prev/next buttons.