library that detect device type by browser's user agent string and serves different templates for each type