fix: make fail-callback available in ancient browsers