Added Paul Irish's request animation frame polyfill technique.