added app.js using example code to repo