JQuery and Node Implementation of the epsilon greedy algorithm