[bug 889552] Refactored front page and other pages to use only app.js, gallery and packery functionality into a single gallery.js file