Sending client-side logs with ajax