Work on WaveJS, added basic JS interface for the Chat type