An Arschloch implementation in JavaScript