Update .gitignore
Refactoring: remove logic from routes file

Use EJS template to generate the injected HTML