Decided to post to CouchDB from PHP. Struggled so much to post JSON data to PHP - realized I had to explicitly set the Content-Type header via $.ajax