easy API for leveldb on both node.js and browser