The following piece of code translates the formula into javascript.
if(windSpeed <= 3) { windChill = temperature; } else{ windChill = 35.74 + 0.6215 * temperature + (0.4275 * temperature - 35.75) * Math.pow(windSpeed, 0.16); }
Where temperature and windSpeed are values entered by the user.