alternative solution objects-math-js.html