add support for getting current animation details for running avatar animations
added example script
CR feedback
Merge pull request #3121 from ZappoMan/animationFrameIndex

adds JavaScript API for getting the current animationDetails (state) for avatar animations