Not sure exactly how you're doing the velocity of the ball, but to get it to bounce like that, just invert the horizontal element (multiply by -1).