Yup I've been known to do this as well :) I'd have a Node.js + Mongo endpoint ready on the other side.
Here is an example of injecting a jQuery script into a page with jQuery loaded and getting nicely formatted information returned. [1]
[1]https://github.com/adam-s/playboy-fm/blob/master/server/scra...