Update example in Javascript tutorial->metadata

Fixes issue #1