DRY channel.js