Use this. instead of window.
Merge pull request #125 from mozilla/dont-use-window

WIP: Use this instead of window