Added window global to be compatible with jspm