js set the global of a function code example Example: javascript global function window.my_function = function(){ // }