Created new gallery.js under amd