Found even more errors in adapter.js.... fixing....