fixing transitionend issue for other browsers