Fixes #395 (JSON download button for analyze page)