Update adapter.js

Allow views