Qualify window.document because some environments (e.g. node-webkit) will not have window as global
Merge pull request #69 from cha0s/qualify-window

Qualify window.document because some environments (e.g. node-webkit) wil...