jQuery test with DOM/windows object