Refactor modernizr

@aduggin @jonwyatt-mas 
pirate js