Query mithril virtual dom for testing purposes but also allow use of other window objects other than domino's