#12 Added javascript interfaces for publishing and receiving messages