[javascript] Accessing variables from other functions without using global variables