Making compatiable with node.js
Working tests
Remove old test file