Issue #5829: adds jsDocs to spine.
Merge pull request #2193 from dingpinglv/Iss5829_JsDocs

Issue #5829: adds jsDocs to spine.