I note that your original program does work with GlowScript versions 2.1, 2.2, and 2.3, but not 2.4. The bug is likely to be associated with the changes to make axis and up always be at right angles to each other, which did involve many changes.
Thanks that worked perfectly, much appreciated :) . By the way vpython and glowscript is absolutely awesome, amazing work. It makes doing simulations so much easier for me.