Update index.js, gallery.js Create func.js