fixed event listener for transition end (firefox, opera, and ie were broken)