Update 1-gate.js