Changed pages into EJS templates