Node.js logical expressions parser