Issue #5829: adds jsDocs to spine.

adds jsDocs to spine.