Fix gimbal lock caused by chrome update

See unconed/MathBox.js@dd802725b51260dcb361c65387afbb2a1e99b3ea