cranked hard on the javascript, but the html needs to be redone