copied parts of package.js from accounts-ui*