restructures app to have main file as index.js
adds first simple mocha test using chai and expect