finagling the ajax response