The server status widget I coded for EQ2Wire uses JSONP. You can take a look at it here, and the javascript here.
The page that links to multiple versions and describes a bit more is here.
The server status data comes from the same REST API so it should be able to be adapted for character data.
Hope that helps.
Dethdlr