Minimal shim to enable HTML5 elements in legacy browsers