remove `domains` option
remove error callback argument in browser version