Modernizr

"Modernizr is an open-source JavaScript library that helps you build the next generation of HTML5 and CSS3-powered websites."