added initial index.js contents