added app.js for gallery