Made code look nicer, general page loading function. Comments in html file