Update eventShim.js

Added implementsEventListener() helper function to check if supplied object implements EventListener interface.