Toxiclibsjs is an open-source library for computational design tasks with JavaScript. This library is a port of http://toxiclibs.org for java and processing. http://haptic-data.com/toxiclibsjs
toxiclibsjsprocessing
https://github.com/hapticdata/toxiclibsjs