JSON response

* modified servlet to return response as application/json