Update README.md

Fixed this example to call the function animate in function init