dom-console: support clear()