If I got time will try to do it my own in a PR for treo, but would be nice to support descending order using opts.direction:
Store.prototype.cursor = function(opts, cb) {
var name = this.name;
this.db.transaction('readonly', [name], function(err, tr) {
if (err) return cb(err);
var store = opts.index
? tr.objectStore(name).index(opts.index)
: tr.objectStore(name);
var req = store.openCursor(parseRange(opts.range), opts.direction);