Removed unused debug code
Fixed bug in firebreath that resulted in a bad access when sending JS events
fixes #1,fixes #2; Use oncomplete, onerror, onabort and onprogress are now real JS events