Network simulator written in JavaScript