Mocha tests implemented

Moved the JS file away from the .coffee ones
Added a test file to start using mocha