Script class "new" functions use custom class names

the "new_ScriptedClass" functions now use the custom class names, which
are based on the name of the script file