A better javascript example in the README.