A javascript version of cgminer package for node.js