Cleaned up tab/space issues in adapter.js and unit-direct.js