a little transport.js clean up