Why add window to the front? It is to get around Openlayers not defined issues, then it is better to add it to the /*globals*/ section at the top and JSHint will assume it is being loaded externally