[CHORE] Trustlines: Refactor JS code - WC-1620
[CHORE] Trustlines: Add comments, refactor JS - WC-1620