cache jQuery selector in gallery.js