updated build_gallery and embed system so that the gallery works when served up as a static file