Sending data through ajax request.