update readme and sample.js