(#2970) - fix jshint and leveldb

Unfortunately we have some duplicate code here, so it's understandable that you missed leveldb.js. We should probably refactor it to use utils.js like websql.js and idb.js do.