added a nice cross platform requestanimationframe script, courtesy of Paul Irish and others