refactored to use promises in on method
0.0.2
Merge pull request #1 from io-digital/promise-refactor

Promise refactor