Fixes a bug where the rAF polyfill failed in Safari 5.1.
Fixes a bug with iOS where you can't use localStorage when private browsing.