Download JSON directly rather than fill textarea

Copy and paste was introducing mixed encoding errors