built up simulation engine in javascript. added testing via teaspoon, jasmine, mocha