Download JSON directly rather than fill textarea

Requiring people to copy and paste was introducing mixed encoding errors and invalid JSON