Worked with browser API to give it string, and adapt to new emitData schema