Fixed missing argument to factory closure which caused window to be null in IE10

Fixed missing argument to factory closure which caused window to be null in IE10.

Exception thrown in IE:

``` 
SCRIPT5007: Unable to get property 'location' of undefined or null reference

File: le.js, Line: 59, Column: 13
```