JS trigonometry functions work with angles in radians. Edward trig functions work with degrees.