scripts/util.js
utils/dom-util.js
Also replace existing usages and add more tests on all util methods. Change-Id: I89e0d9413153bfc115cd989ca7c66893b9709cc2