[javascript] Convert string to variable name in JavaScript