Allow isMobile to exist in global space in AMD environment