During the process of developing a website with html, css, js and xml files stored on my computer (not yet online), I initially kept all the files in one folder along with an images folder. However, as the project progressed and things started to get messy, I decided to organize my files into separate folders for css, js, and xml, updating references accordingly. Unfortunately, this change led to encountering the "Access to restricted URI denied code: 1012" error, which was discussed here, here, and here. Acting upon the advice from the last link, I moved the site to my localhost server, resolving the 1012 error. However, new issues arose where my js code had trouble accessing html elements. To keep it general, what are common challenges and their corresponding solutions related to relocating website files into subdirectories?