Wodpress Customizer Selective Refresh Div with respective Javascript and Localized data

There is a div with the selective refresh which is having a javascript to make some changes. As due to selective refresh HTML is dynamically updating hence respective javascript stops working as it has selected previous element which has obviously replaced.

How to deal with this situation? Is there any way to refresh the javascript as well?

Go to Source
Author: Rohit Patil