This is a little program I wrote in JavaScript. I implemented the adaptive quadrature for numerical integration.