Support definitions from JavaScript

Fix #4
Update mocha
0.2.0