Simplified for Haxe3.  Allow detox, or fall back to jQuery.