There are many instances were you might like to define global variables, that can be used anywhere.

This does not work:

This works:

In case of the first $.geScript function(){…} the my_variable is only availble within the scope of the function. In the second the variable is assigned to the window object and can be used within.