support ascii file downloads, check file extension, add json2.js asset.