Load JQuery before gallery