use reqest animation frame. update min version.
Merge #3 and adjusted some minor things