adds missing parameter to function
Merge pull request #315 from G5/gallery-js-fix

adds missing parameter to function