After the call today, we decided to go with `var message = ROSLIB.Message({ values: { x: 0, y: 1, z: 2}});` after @rctoris mentioned we could add message types in the constructor:

```
var message = ROSLIB.Message({ type: 'std_msgs/String', values: { data: 'Hello'}});
```