const myWidget = cloudinary.galleryWidget({ "cloudName": "vakarthik", "mediaAssets": [{ "publicId": "Still Life/16032011_sunset_2953_web", "mediaType": "image" }, { "publicId": "Still Life/29122010_macro_6757_web", "mediaType": "image" }, { "publicId": "Still Life/29122010_macro_6776_web", "mediaType": "image" }, { "publicId": "Still Life/DSC_0927_web", "mediaType": "image" }, { "publicId": "Still Life/DSC_0950_web", "mediaType": "image" }, { "publicId": "Still Life/DSC_9269_web", "mediaType": "image" }], "aspectRatio": "4:3", "carouselLocation": "bottom", "carouselStyle": "indicators", "zoomProps": { "type": "popup", "trigger": "click" }, "container": "#my-gallery" }); myWidget.render();