Variable Name To String Javascript Functions Within Functions