if ((navigator.userAgent.match(/(phone|pad|pod...