fix typos in html
explicit about html resource
moving JS out to external file (still debug alerts in tho)