fix for clearJointData() in JS scripts

let the JointState class verify animation priority