Cleaning up sample.js