You could define some new functions which do sin/cos/tan on degree
inputs:
var degsin = function(x) { return Math.sin(x*Math.PI/180); }
var degcos = function(x) { return Math.cos(x*Math.PI/180); }
var degtan = function(x) { return Math.tan(x*Math.PI/180); }