changed touch detection to work with modernize since the old selected way seemed to have changed through different browser