use modernizr to detect touch support, minor js improvements