title: Include a specific version of JQuery and a plugin without conflicting with the page's JavaScript library?
body: <p><strong>TL;DR</strong>: I want to include a specific version of JQuery and a specific JQuery plugin that is associated with my inclusion of jQuery on multiple different sites where I know nothing about the JavaScript libraries/plugins used by them, without conflicts. Possible? How? </p>
  
  <p><strong>The whole story</strong>: Let's say I want to build a Reddit platform where multiple sites can link to Reddit threads by including <code>http://myredditplatform.com/reddit.js</code> and having <code>&lt;a href="" data-reddit-thread-id="1234"&gt;&lt;/a&gt;</code> elements littered on the page. Once a user clicks on a link like that, I open reddit in a beautiful modal window.</p>
  
  <p>Now because I want Reddit Platform experience to be consistent across all sites that use my script, I want all sites to use my particular modal plugin and I want to style the links in my particular fashion. </p>
  
  <p>But I can never be sure what Javascript library or plugins the other sites are using, so I must make sure that when <code>reddit.js</code> loads JQuery, it must not conflict with other libraries on the page and when <code>reddit.js</code> loads, for example, <code>prettyPhoto</code> plugin it should only be associated with the jQuery library included by me. </p>
  
  <p>But I also want widespread adoption for my platform, so I don't want to place any more restrictions on the sites like you must have jQuery, or you must have prettyPhoto loaded. I just want them to include this one JS file, <code>reddit.js</code> which does everything for them. </p>
  
  <p>Is it possible to make this work? How would you go about it? </p>
  
  <p>Thanks! </p>