How do i send/receive files with pure JS?

Here is a translation: Snap! Build Your Own Blocks
(I did about 2/3 of it myself. The other 1/3 I used Google Translate.)