save note with ajax.