Ok, think about this logically. It works fine on the homepage but not on other pages.
This could mean that there is another script being loaded on other pages that is causing problems. Could be that there is a missing tag somewhere. You would be best off disabling (not uninstalling) each extensions, 1 by 1 that are associated with the other pages. After disabling each extension, refresh the page to see if the problem still occurs. You may also want to take into consideration that the scripts are being loaded in a different order on all other pages.
Before doing this though, at a guess, I think it might be due to the fact that this:
is being loaded after this:
Powertools is used to create custom events, therefore it's possible that
djmenu.js is trying to create an event but can't because the file hasn't loaded yet.