btc: json[key].hash == "SHA256",
                    values: []
                };

                if(hasInited) {
                    for(i = 0 ; i < samples[0].values.length ; i++)
                        samples[nJsKeys].values.push({x: i, y: 0});

                    console.log("new device!!")
                    newDeviceFound = true;
                }

                nJsKeys++;
            }

            if(newDeviceFound) {
                hasInited = false;
            }

            for(key in k