An expression parser written in javascript