Pass jQuery to function
Indexeddb wrapper and example