fix for clearJointData() in JS scripts

let the JointState class verify animation priority
Merge pull request #3315 from AndrewMeadows/inertia

quick fix for clearJointData() in JS scripts