Update gallery.js

uri encode the url before sending it to google