Added repository field in package.json
tabs -> spaces
Rewrote tests in mocha
Fixed npm test