run 2 identical javascripts on the same page
<p>This is a general question. I have a javascript i want to use twice on the same page. It is obvious that whenever i interact with one of them - it will change the other one. I know that renaming method names within them will solve this, but i don't have access to it.
Is there a way to let them both work without collision between the 2 of them? </p>

<p>I thought of wraping each of them inside a javascript with other name, but i am stuck here. 
Any ideas?</p>
