Javascript fix for chrome + google web font bug