Pollyfills RAF and sets a pixel scroll loop.
Collapses common setup code into its own functions.
Notes on timing and pixel positioning.