Javascript implementation of O'Reilly's book "Bandit Algorithms for Website Optimization"