Update document-adapter.coffee

Clear code