ajax sends a number to the server and receives a result