Allow get_sites() to be called via ajax