If you are using a framework such as jQuery then you would have the one global variable and would change your starting point as follows to allow that global variable to be referenced using its short name from within your script even if the short name is disabled to avoid conflicts with a second framework