Add updatePercent(percent) method.

Move requestAnimationFrame polyfill in order to make it usable
everywhere in the plugin + create new method updatePercent(percent)