In master, js files are loaded at the top of the page so we need to call this function only when the website is ready