Adds a change method

Enables the changing of the current page programmatically, via Javascript.