Changed package name in sample proto so that they would work in Java. Note: I successfully passed Foo messages with extensions back and forth between the Java protobuf implementation and this JavaScript one.