Added promises for the $.animate call