HTML5 implementation of the famous lightning applet