Update app.js

fix "TypeError: Arguments to path.join must be strings" error
Merge pull request #1 from oussamatn/patch-1

Update app.js