CLU data structures in JavaScript