Can anyone please help me to understand why my javascript code is not working when I\'m including the HTML file in other HTML, whereas I\'m able to include HTML code and the jav