Maybe it will help you if you realize that every variable name in the global scope is automatically the key of an associative array called "window" if you use it as a string
i.e.
Code:
var myVar = 5;
alert(window["myVar"]); // will give 5
window["myNewVar"] = "Hello";
alert(myNewVar); // will give "Hello"
So you could do it like this
Code:
window[array[0]] = array[1];