Model view pattern implemented for node.