only load script once

When loading a script file (plug-in) only load it if it has not already been loaded. Also, allow the browser to cache these requests.

Provides a fix for #13