modular spice simulator in javascript.