Improved Q.Animation to work with requestAnimationFrame when available