Js ingest

Send, request logic is implemented for browser and nodejs. 
What I had meant in a previous comment, is that one of the object's fields should be `name`. Otherwise, when the exception is thrown, it merely shows up as [Object object], without the `message` field even printed. If you give this object a `name` field, the proper message will also be printed when the exception is thrown.