fixed helper.js for couchbase
Finished porting to Couchbase
Porting master to Couchbase