Update ajax.lib.php