Switched window -> this for support in newer coffeescript compilers