i-bem__dom.js: fix broken `replace` method

close #215