-fix error callback from function "afterMove"
-refactor pagination click function
Merge pull request #76 from faygrin/faygrin_fix

Fix error & refactor