js timing fix for fontscale