Update to partially working javascript, traffic_lights as model