backport 2.7x (minor) web client's inspector.js leaks function names into the DOM