turned off window event throttling, and changed criteria for dom element check