minor changes in modernizr detection