Use the ScriptManager class rather than getting the class.