Interpreter for a math language written in javascript