Update ledger-listener.js

Removed large chunk of unused, commented code.