Update thx.php

Fixed counter and some other AJAX things xD.