modified LoadScript.cs about script reader