Fixed templating issue in express.js