Javascript counterpart to animate.css