Added support for loading linked scripts