Detect webfont loaded with JavaScript. Code styred from http://stackoverflow.com/a/11689060