switch to gzipped index page
fix for json, stats page, and JS
fix typo in js