added comments to js and header to html