Update client.js

if multiple messages come in at once they now get split up so can be parsed into objects