Update gate.js