Modified router to handle jade files