Just playing with modern javascript. Implementation of Simpson's numerical integration method.