move getStats to adapter.js

We don't really _need_ this change, getStats is only used in js. only reason we had was that this matches the definition. but I can revert this change for now.