#200

When index.php outputs JSON encoded data, the content type is set to to
'application/json’.
Merge pull request #201 from kanflo/master

#200