Revert "Update index.js"

This reverts commit 41eac67b369d459913d02567aa4f1cd37fea9e64.
Change to lazily evaluate checks for IDB, so if you are trying to make an in-memory database it will work with node.js