Simple and famous algorithms in JavaScript!