wrote the plugin
added the cross-domain stuff