firefox didn't work because of this line.
With little bit of cleanup it works nicely!
https://github.com/ajaxorg/ace/compare/workerBlob#diff-44925820ada1c9002caf68b89d648c38R65