Added console logging for AJAX failures and proper handling when no project is found, or no project samples are found.