Fixup js for firefox rendering
Use textarea in new gref modal as well