Added adapter.js