Adding loadScript method for loading javascript libraries into the worker's context.