Numerical Recipes in Javascript