added template code to nodeserver.js
commiting before work