Pairing together to make an html with javascript