Math.log10 doesn't seem to exist outside Chrome.