 inc() { " +
        "        ++x; " +
        "        Incremented(x % 2 == 1, x); " +
        "    } " +
        "    uint x; " +
        "}";

        var compiled = web3.eth.compile.solidity(source);
        var code = compiled.Contract.code;
        var abi = compiled.Contract.info.abiDefinition;

        var address;
        var contract;
        var inc;

        var update = function (err, x) {
            document.getElementById('result').textContent = JSON.stringify(x, null, 2);
        };
    
  