Add fetch-text function to loader namespace