Adding ids to HTML and refatoring css and javascript.