Rewrote js/remote-content.js to use YUI3.