Added 'lang' option to use jade or ejs