Update tx-listener.js

Cleanup, unused code moved to commentary