Match a pattern within a nodejs stream