Hash ring implemented in JavaScript.