for (var x in a) {
            if (Object.prototype.hasOwnProperty.call(a,x)) {
                c[x] = a[x];
            }
        }