Update widget.js

Looks like a copy & paste bug that prevents custom events from firing. Not sure what the "context" param in exports.on()/exports.off() are supposed to do.
Merge pull request #16 from iotashan/patch-1

Update widget.js