Updated Mobile Detect code