Simple matching engine written in Node.js