More precise jQuery compatibility.
Revert "Don't need to use "window" here."

This reverts commit 925c2cbb81d09f7af54b49d785516bee6637b349.

Thanks @kcivey.
Version 1.1.2.