Fixes and documentation for mock.$animate