added Modernizr function & adopting Mozilla standards