adds chaining for on method
Merge pull request #27 from vitkarpov/chaining-fix

Chainability for the On method