Update math.js

Resolves issues