Removed $animate.leave because it caused ie8 to break