If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
The objective of the game is to manipulate the stop lights in such a way that there will be less queueing of cars. The vehicles must reach their destinations fast, especially the ambulance. Try not to get the cars to collide. Just be careful not to hurry when intersecting streets are jammed.