Better web font loading with JavaScript