Finishg adding header blocks to the JavaScript code.