Ajax enhanced sidenotes

Paste the following code in to Firebug on the sidenote popup page.