Added custom EventDispatcher.js; fixed extend.js

Silly syntax errors in extend