VID-2089 backwards compatibility for galery html pre-jssnippets