template work. steps towards node.js usage (not working)