template inheritance in node.js