Ajax posts to server and cheet is created