method and var sugar for circuit.js