Check if var isTouch is undefined and fixed nav scripts