create index.js and apply it to index.jade.