https://wikimass.com/js/file-handling