updating parsing in math.js