added adapter.js