add adapt.js