Updated the mobile detection script