Adding index.js
Cleanup and formatting