Fixed font loading in JS