Maybe nitpicking here, but "Globals in scripts is no longer supported" seems to be an overstating... 

Reasoning: as long as variables are specifically declared as global in the script's main scope (if that is the place where they are being instantiated), then there should be no issue whatsoever.
Perhaps the doc bellow could be a bit clearer on this regard? Just my 2 cents...