Traffic congestion simulation with JavaScript