new index.js example