Algorithms in JavaScript.