updated index.js for demo data