A CSMA/CD simulator in JavaScript