JSON output

Modified the package to only output JSON, pages are rendered in HTML
and JQuery.