First working Ajax query sending array to server and receiving response data