Test extracting ID number for AJAX