Cleanup animations to work in old webkit (thanks Evan)