Update adapters.js

for issue #3