add getDocRef instance method to galleryClass.js