fix getJSON for Node env
receive message
forward presence event