Fixes text overlay JS error in $.fn.imageEditor.