Added new plugin functionality for loading external scripts