In order to facilitate future updates of my application, I've put the big functions into an external script. However, I find that the externally-loaded js chokes on references to the Resource Library. More specifically, I get a "Failed to load resource" error (404) when the statement referring to an image in the Resource Library is executed.
I attach a very simple demonstration of the problem.
Any ideas why this won't execute?