changed typeof in webfont loaded