Added ScriptHolder class.
Fixed errors
Fixed errors in ScriptHolder class