JSON support and main page