Update animatedCharacter.js