You can replace all of this with:

```js
app.use(express.static(__dirname + '/public'))
```

and put all the files inside a `public` directory