adds jquery and ajax request to server