filename is saved with URL at routes/index.js. Functions send the originUrl parameter and added two functions to find the host