Add package.json
Fix animate method