added and included adapter.js