use !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) to test if touch enabled