The javascript implementation defines deg2rad as
deg * Math.PI / 360
It's been a while since high school math, but shouldn't that be divided by 180? Looks like the numbers in the docs are based on this incorrect conversion.