Create gateway.js