Move font import to speed up widget display
Change constructor detection to be slightly shorter, and work with IE8