Added context support to EventDispatcher.js