hooray!!! i finished my lightning simulator!!!
however... it is 895 lines long... so i'll post a link! ( see the source code by going directly to the page and pressing Crtl+shift+J or Ctrl+U)
http://jsnerd.do.am/untitled2.htm
i dont mind if you use the code, just put at the top of each file useing it "Lightning Generator code by bryre papata" (in a comment of course). it doesn't truly simulate lightning, the eletric feilds it simulates are either on or off, but i'll update that later.