fix JS radians vs degrees issues