fix script gallery.js call