Add a JavaScript version of the sample in the README