Removed NoScriptType and changed around the workings of the ScriptType helper functions.
Now using the correct windows for the open function.