Removes unnecessary arguments from gallery.js
Fixes login bug caused by a Boolean check on an always truthy variable