reverted buffer check to the way I had it before which works with couchdb (spidermonkey)
Merge pull request #16 from jlank/buffer-fix

Fixed buffer checking