Reference Error when module is not defined

It's not possible to pass a variable that hasn't been defined. This failed when running in standard browser environment.