update math.js