Weak.js implements a variety of data structures to reduce the memory footprint of a JavaScript application. It depends on OscarTheGrouch.js.