moving index.js into a src directory