added main.js and setup layout.jade in views