The function is contained in the JavaScript file. The HTML file displays the final caluclated result (mostly for testing purposes).