Update xdie.php

Add AJAX format