Changing typeof check to look to module instead of exports to prevent accidental undefined error

Looks like inject will set the exports property on window while loading controls but not the module. Getting lots of module undefined problems.