Made the JSON test data actually download when clicking download test data instead of displaying it in the browser