Adding HTML and JS functions