Use dot notation instead of square bracket notation to access global properties

Updates `build.js` to convert back to square bracket notation before passing to
the Closure Compiler.