Generates stub Javascript objects from Go structs. Used for Websocket message generation and synchronization.