A Javascript mathematical expression parser