wrap leveldown in js (removing some ugliness from index.js)