edit tutorial 2 sample.js