added link between js and html along with add information to my js in the comments.