rewrote index.js in coffee script, moved source files to src folder