fix: fixes domRegistry for old browsers. up for comments and review in Github PR