detect touch device and non-ie browser via javascript