use FileSaver.js for file downloads

fixes #241