Black Scholes calculations in Javascript