Simple rule-based filtering for node.js