Bitcoin API rewrite in Node