A QLOCKTWO implementation in JavaScript