fix animationEnd with navigator.js