issue #4037: Merge PR #5343: Exposed the missing data structures of Spine to JS

Merge PR #5343