fleshing out html, fixing doubling error in js