Remove logging from gallery.js