https://siteforinfotech.com/2015/10/how-to-handle-document-load-event-in-javascript.html