BHV-16979: Use alternative for Math.log10.

Enyo-DCO-1.1-Signed-off-by: Aaron Tam <aaron.tam@lge.com>