fixed the function that verifies if a device is touchable. It was not working in lots of different browsers