For some reason my JavaScript has randomly stopped working, even though there is no change in the code.