Moved MobileDetect definition