Always use transitionend if available; always set a timeout backup
Fixed bug in use of properties
Use correct name for transitionend event