no more jQuery in gallery.js, just plain vanilla