update event.js for chrome tab issue.

Newer versions of Chrome don't send the tab property of sender.
Explicitly creating tab property fixes issue.
Merge pull request #149 from xtop/master

fix for issues #147, 148