split index.coffee in multiple files
fix unit tests