Add to global with string keys instead of dot notation.

When compiling with Google Closure Compiler the preferred method of preventing variable rewriting is to assign with strings instead of with dot notation, as the compiler won't touch the strings.

This pull request replaces the dot notation with string keys for adding variables to the global object (window, self, global etc.)