added catch all for page redirects and added ejs as dep