cleanup and replace jade with ejs