Get rid of the js evaluation and implement a proper algorithm for evaluating expressions via the use of a recursive descent parser