Added client js library starting with send message function.
Added error checking on json data.
Merge pull request #42 from jivid/client_library

Added client js library starting with send message function.