Using pure javascript and html