fix math.js