Look for indexedDB and IDBTransaction in the global scope when initializing the IndexedDB store.

Fixes #14