Detect if getEntriesByType function exist to enable fallback

The library won't work in latest stable Firefox.