Removed some commented-out code and debugging print statements
Removed unneeded gallery.js file