Fixed some JSHint errors with adapter.js

Fixed some JSHint errors with adapter.js