Don't add this js here. Because this entire plugin is using only in gallery page. So I added it in that page only