Bug fix hasTouch check. Not possible do use document.ontouchstart === null check, because this does not work if ontouchstart method is used to catch touches on document. Added proper check for "ontouchtart" method.