adds sample code to app.js