Fixed uglify build
Added EventHandler interface