Edited sample.js