created Modernizr function & adopting Mozilla standards