setup the mainpage route and the index.jade view