Update gallery.js

undo uri encode