Update adapter.js