imap client written in go and js