Added JS plus minor mods to HTML