Updated application.js to include image gallery