re-adds protobuf_implementation to JS driver
Add missing "err." in the js driver

Review 879 by @neumino