add comments to functions (#1)
window.onload → document.onDOMContentLoaded