A Event Handler that attaches itself to Objects for JavaScript