Ajs 5 adapter in header jo

This is a different piece of code, that would probably benefit from being updated the same way.
My pull request however concerns the one surrounding the plugin injection and using onreadystatechange.

I'll have a look at this callback function a bit later



> On 01 Oct 2014, at 19:02, Thomas Gorissen <notifications@github.com> wrote:
> 
> In source/adapter.js:
> 
> > @@ -68,7 +77,7 @@ __TemWebRTCReady0 = function () {
> >        if (document.readyState === 'complete') {
> >          // TODO: update comments, we wait for the document to be ready
> >          clearInterval(Temasys.WebRTCPlugin.documentReadyInterval);
> Guess, you're still doing the interval? Did the DOMContentLoaded cross-browser implementation not live up to your standards?
> 
> —
> Reply to this email directly or view it on GitHub.