various hand-applied cherry-picks from the html5boilerplate repo