Global objects are accessible through out the program. Wrapping global objects in a object that has the same name as the file name will decrease the number of global variables
myapp.js
var myapp = {}
myapp.global1 = "val1";
myapp.global2 = "val2";
......