To load it into my main code, I have defined a function called loadjs(). Although I do not get any errors as far as pointing to the file is concerned, the external file does not seem to load. My Navigation toolbar buttons continue to be non-functional.
I am attaching the code for reference. loadjs() is placed at the bottom after map.addlayers. Any suggestions are appreciated!