Convert Math.pow to Exponentiation Operator

Use the exponentiation operator ** instead of Math.pow().

refactoring (convert)
ES2016 modernization
safe