LUN-1960: implemented js lib for snippet widgets registration inside plugin forms