javascript function local how to make global code example Example: javascript global function window.my_function = function(){ // }