Poor's man JavaScript library for the unreleased Thunderbird IMAP extensions