Create log10 function for chrome compatibility