Tablet and mobile device detection. Javascript only