correcting order of css links in html. adding comments to js.