Experimental revision of kraken-js