create initial animate function, animate();