Clean up Streamer.onmessage

This now receives JSON, and also cleaned up the body of the `onmessage` handler.
I'm going for consistency, majority of the functions in this file use brackets.