Changed output from HTML to JSON