Javascript Create Global Variable Dynamically