Unified snapshots (used the same in Java and JavaScript tutorials)

Change-Id: I7def3e212680169b432a4cc65f833048fa1349cd