re-added adapter.js