Updated fnAddScript()

Updated fnAddScript()