Boolean expression parser and interpreter for JavaScript