Fix animations in JavaScript mesh API examples