Preparing to send ajax request