Move function declarations below event handler registration
Move function declarations below event handler registration

chuck-wood/download-all-attachments,chuck-wood/download-all-attachments,chuck-wood/download-all-attachments