JavaScript thought experiment. Put more data into the code. Turned out ugly.