PC simulations in JavaScript