Pareto Principle code

An example of Pareto Principle written in Javascript code.