Standalone popup was not working in dynamically created Popup button via JS