Flip a die with ajax