[Refactor] Replace Modernizr with custom feature detection