merge app.js with sample data