a generic parser to parse whatever you want in node.js