Getting rid of sample index.js code