fix requestAnimationFrame issue on ios 7 devices. fix #1