a solution to eligrey/FileSaver.js#12