Changed some setTimeouts to requestAnimationFrame and added Eric Moller's polyfill for graceful degrading.