Some algorithms implemented in javascript.