Famous phases of the moon applet in HTML5