No-Library (pure JS), HTML, CSS, JavaScript
Created as part of my answer to http://stackoverflow.com/questions/8178825/create-text-file-in-javascript