Add smartgateway.js