Create adapter.js