Made entropy node.js complient, and added a basic test.