Update adaptor.js