testing out gigabit api with text editor

api work

deciding between setting all of the text editor input as the value for
"js" in the JSON messages published to channel, and instead using a
publish function, so you can have other code in the text editor that
gets executed by the client