VID-2089 using JSSnippets to initialize galleries