Improve HTML, start of JavaScript functions