moved $.fn.safeHtml to RESInit

to guarantee the function gets added to RES's $