Js ingest

Send, request logic is implemented for browser and nodejs.