Update ajax.lib.php

For use in a list of object