edit sample.js