fixes a missed variable rename
Merge pull request #291 from G5/gallery-js-fix

fixes a missed variable rename