a template for writing a redis subscriber in node.js