Javascript Haiku Generator

In September of 2012, I took a course in Javascript. Below is a simple random word haiku generator I wrote.

Haiku js

haiku

html file

<script src="main.js"></script>
 <input id="haikuButton" type="button" value="generate" />

.js file

<!--
	document.addEventListener("DOMContentLoaded", init, false);
	
	
	function init() {
	
		generate();
		
		var enterButton = document.getElementById("haikuButton");
			enterButton.addEventListener("click", generate);

		}

	function generate() {
	
		var oneS = ["true", "dark", "cold", "young", "great"];
		var twoS = ["visions", "distance", "conscience", "process", "chaos"];
		var threeS = ["ravishing", "amazing", "fanciful", "delightful", "delicate"];
		var fourS = ["superstitious", "continuous", "incapable", "contradicting", "overwhelming"];
		var fiveS = ["undeniable", "beautiful", "irreplaceable", "unbelievable", "irrevocable"];
		
		var num1=(Math.floor(Math.random()*10) % oneS.length);
		var num2a=(Math.floor(Math.random()*10) % twoS.length);
		var num2b=(Math.floor(Math.random()*10) % twoS.length);

		var num3=(Math.floor(Math.random()*10) % threeS.length);
		var num4=(Math.floor(Math.random()*10) % fourS.length);
		var num5=(Math.floor(Math.random()*10) % fiveS.length);
			
		var words= document.getElementById("words").innerHTML= threeS[num3] + " " + twoS[num2a] + "
" + fourS[num4] + " " + oneS[num1] + " " + twoS[num2b] + "
" + fiveS[num5] ;

		}		
	
-->