Added indexedDB check

Solves some conflicts I was having in browsers that do not support indexedDB, eg: Safari
Merge pull request #59 from kilbot/master

Added indexedDB check