Update gallery.js
Merge pull request #2 from yi-cheng/patch-2

Patch 2