adds the javascript side of the system and the HTML example page