Checking if ajax_getAllItems(current_user_id) fails. Showing an alert and writing to js console in this case. (Not very helpful: this really means the app is not functional.)