Capture CSS3 Animation Events in JavaScript
from:https://gist.github.com/kewah/4493678