tim_smart: you can use http.js from node in the browser to get a stream-like xhr object