Sending and receiving postMessages with the message as an javascript object instead of a JSON string