added jade templating, start converting main.html to jade